<? session_start(); ?>
<html>

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<title>homepage</title>
	<link rel="shortcut icon" href="{Favicon}">
	<link rel="stylesheet" type="text/css" href="CSS/style.css">
</head>

<body>
	<div id="header">
	<h1><strong>This Android Website of Testing Stuff</strong></h1>
	<?
	if($_SESSION['loggedIn'] == true){ 	?>

		<div class="usermenu">
			<br>
			<a href="/usersettings.php">User Settings</a>
			<br>
			<a href="/speedpage.php">Change Speed</a>
			<br>
			<a href="/logout.php">Logout</a>
		</div>
		

		<div id="user">
			<? echo''.$_SESSION['username']; ?>
		</div>
	<? }?>
	</div>

	<div id="bottomcurve">
	</div>

		<div class="menubar">

			<div class="empty">
				<a href="index.php">
				<img src="empty.gif">
				</a>
			</div>

			<div class="menuhome">
				Home
			</div>	

<? if ($_SESSION['loggedIn'] == true){ ?>

			<div class="empty2">
				<a href="speedpage.php">
				<img src="empty.gif">
				</a>
			</div>

			<div class="menulogin">
				Speed
			</div>
			
<? }else{ ?> 
			<div class="empty2">
				<a href="login.php">
				<img src="empty.gif">
				</a>
			</div>

			<div class="menulogin">
				Login
			</div>
		<? }?>	


			<div class="empty3">
				<a href="register.php">
				<img src="empty.gif">
				</a>
			</div>

			<div class="menuregister">
				Register
			</div>

			<div class="empty4">
				<a href="credits.php">
				<img src="empty.gif">
				</a>
			</div>

			<div class="menucredits">
				Credits
			</div>
		</div>
	<div id="about">
		<strong>This is an About Box<br></strong>
		Write some relevant things about the project in herein here?<br>
		mouse-over header for links
	</div>
</body>

</html>